Skip to content

Fix type inferencing in partial if blocks - #73

Open
InnocentZero wants to merge 1 commit into
nushell:mainfrom
InnocentZero:standalone-if-typefix
Open

Fix type inferencing in partial if blocks#73
InnocentZero wants to merge 1 commit into
nushell:mainfrom
InnocentZero:standalone-if-typefix

Conversation

@InnocentZero

Copy link
Copy Markdown
Contributor

If the if-block is not followed by an else block, the typechecker incorrectly assumes that the type of the resulting node would be NONE_TYPE. That's not necessary, since current semantics set the type to be a oneof(nothing, _) type

Fixes #72

If the if-block is not followed by an else block, the typechecker
incorrectly assumes that the type of the resulting node would be
NONE_TYPE. That's not necessary, since current semantics set the type to
be a oneof(nothing, _) type

Signed-off-by: innocentzero <1nn0c3n7z3r0@proton.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

standalone ifs being statements breaks oneof type

1 participant